#include "vector1.h"
#include <iostream>
#include <vector>
#include <string>

using namespace std;


template <class T>
void print_vector(vector<T> &v) {
	for (T& n : v) {
		cout << n << ", ";
	}
	cout << endl;
}


void test1() {
	cout << "-------------test1-------------" << endl;

	vector<int> v = {1, 2, 4, 6, 8};

	v.push_back(20);
	v.push_back(15);

	print_vector(v);
}


void test2() {
	cout << "-------------test2-------------" << endl;

	vector<string> v;

	auto it = v.begin();
	it = v.insert(it, "aa");
	v.insert(it, "bb");

	print_vector(v);

	std::cout << "--------------------" << endl;
	for (auto&& s: v) {
		std::cout << s << endl;
	}
}

